﻿#define _CRT_SECURE_NO_WARNINGS
#include"List.h"


void Test1()
{
	
	ListNode* plist = ListInit();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPrint(plist);

	ListPushFront(plist, 10);
	ListPushFront(plist, 20);
	ListPrint(plist);

	ListPopBack(plist);
	ListPopBack(plist);
	ListPrint(plist);

	ListPopFront(plist);
	ListPrint(plist);
	/*ListNode* pos = ListFind(plist, 1);
	if (pos)
	{
		ListInsert(pos, 40);
	}
	ListPrint(plist);*/
}

int main()
{
	Test1();
	return 0;
}

